function [] = importContiguityMatrix2Matlab(inputFile, outputFolder, weightMatrixName)
	% Add paths
	addpath('../code/general_funcs');
	
	[W, distinctHeaderValues] = makeArrayFromCSV(inputFile, 2, {'char', 'char', 'double'}, 0);
	
	if ~all(strcmp(distinctHeaderValues{1}, distinctHeaderValues{2}))
		error('The labels are not consistent...');
	end

	% Set values equal to zero if they are too small
	W(abs(W) < 1e-10) = 0;
	
	% Make sparse
	W = sparse(W);
		
	% Save W to output file
	outputFile = sprintf('%s/%s.mat', outputFolder, weightMatrixName);
	save(outputFile, 'W', 'weightMatrixName', 'distinctHeaderValues');
end
